//
// Created by ken on 2025/2/20.
//

#ifndef STM32F407_TEMPLATE_DRIVER_USART_H
#define STM32F407_TEMPLATE_DRIVER_USART_H
#include "main.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "usart.h"
#include <stdarg.h>

#define RxSize 256                //接收的最大数据长度
extern char Usart1_RxData[RxSize];//串口1接收数组
extern char Usart2_RxData[RxSize];//串口2接收数组


uint16_t Change_ReceiveData(char *ReceiveData, char *ValueName,
                            uint16_t Length_ValueName, uint16_t Before_Value,
                            uint16_t Length_Value);

void Usart2_Printf(char *format, ...);
void Usart1_Printf(char *format, ...);


#endif// STM32F407_TEMPLATE_DRIVER_USART_H
